<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\Pivot;

class UserWork extends Pivot
{
//    protected $with = ['result'];
    protected $casts = ['review' => 'array'];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function work()
    {
        return $this->belongsTo(Work::class);
    }
}
